#define _CRT_SECURE_NO_WARNINGS 1

#include <stdio.h>

void swap(char* p1, char* p2)
{
	char tmp;
	while (tmp = *p1)
	{
		*p1 = *p2;
		*p2 = tmp;
		p1++;
		p2++;
	}
	*p1 = *p2;
	*p2 = tmp;
}

int main()
{
	char str1[] = "hello bite!";
	char str2[] = "hello world";
	swap(str1, str2);
	printf("%s\n", str1);
	printf("%s\n", str2);
	return 0;
}